#ifndef STAGEMODEPAGE_H
#define STAGEMODEPAGE_H
#include "problem.h"
#include <QWidget>
#include <QDebug>
#include <QString>
#include <QPushButton>
#include <QTime>
namespace Ui {
class StageModePage;
}

class StageModePage : public QWidget
{
    Q_OBJECT

public:
    void restart();
    void next();
    explicit StageModePage(QWidget *parent = nullptr);
    ~StageModePage();

private slots:
    void on_pushButton_clicked();

    void on_pushButton_1_clicked();
    void on_pushButton_2_clicked();

    void on_pushButton_3_clicked();

    void on_pushButton_4_clicked();

private:
    void sleep(int msec);
    problem pro;
    bool state=false;
    QPushButton *numButton[4];
    void operation(int b1,int b2);
    Fraction now;
    int symbol;
    int last;
    int bu=0;
    Ui::StageModePage *ui;
};

#endif // STAGEMODEPAGE_H
